/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mvp.levelup.hashs.model;

/**
 *
 * @author WORKSPOT2
 */
public class Account
{

    private int id;
    private double money;
    private String testReflectionField;
    public Account(int id, double money)
    {
        this.id = id;
        this.money = money;
    }

    public int getId()
    {
        return id;
    }

    public double getMoney()
    {
        return money;
    }

    public void setTestReflectionField(String testReflectionField)
    {
        this.testReflectionField = testReflectionField;
    }
    
    private String secretMethod(){
        return testReflectionField;
    }

    @Override
    public int hashCode()
    {
        int hash = 5;
        hash = 59 * hash + this.id;
        return hash;
    }

    @Override
    public boolean equals(Object obj)
    {
        if (obj == null)
        {
            return false;
        }
        if (getClass() != obj.getClass())
        {
            return false;
        }
        final Account other = (Account) obj;
        if (this.id != other.id)
        {
            return false;
        }
        return true;
    }

    @Override
    public String toString()
    {
        return "Id: " + id + " Money " + money;
    }
}
